package org.spring.springboot.dubbo.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.spring.springboot.domain.User;
import org.spring.springboot.dubbo.UserDubboService;

/**
 * @描述:
 * @创建人： liuZhiBo
 * @创建时间：2017/10/2713:39
 * @修改人： liuzhibo
 * @修改时间：2017/10/2713:39
 * @修改备注：
 */
@Service(version = "1.0.0")
public class UserDubboServiceImpl implements UserDubboService{
    @Override
    public User findUserByName(String userName) {
        if(userName.equals("冉丽娟")){
            return new User.Bulider("冉丽娟","女").age("22").address("红牌楼竹园").build();
        }
        if(userName.equals("刘智博")){
            return new User.Bulider("刘智博","男").address("竹园14-4-1").phone("17828019693").age("23").build();
        }
        return null;
    }
}
